// pages/resume/edit/edit.js
Page({
  data: {
      inputId: '',
      inputContent: ''
  },

  onLoad(options) {
      this.setData({
          inputId: options.id,
          inputContent: decodeURIComponent(options.content)
      });
  },

  onInputChange(e) {
      this.setData({
          inputContent: e.detail.value
      });
  },

  saveAndBack() {
    wx.setStorageSync('editedData', { id: this.data.inputId, content: this.data.inputContent });
    wx.navigateBack();
}
});